package tq.com.tqteacher.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import tq.com.tqcom.base.BaseActivity;
import tq.com.tqcom.net.INetCallback;
import tq.com.tqcom.net.TQNetResult;
import tq.com.tqteacher.activity.login.TQLoginActivity;
import tq.com.tqteacher.net.TQNetInterface;

public class TQLaunchActivity extends BaseActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        TQNetInterface.init(new INetCallback() {
            @Override
            public void result(TQNetResult pNetResult) {
                gotoLogin();
                finish();
            }
        });

    }

    private void gotoLogin(){
        TQLoginActivity.show(this);
    }
}
